<?php

namespace App\Providers;

use App\Events\BindMobile;
use App\Events\OrderComputedDistribution;
use App\Events\OrderShipped;
use App\Listeners\BindMobileSendCoupon;
use App\Listeners\SendShipmentNotification;
use Illuminate\Support\Facades\Event;
use Illuminate\Auth\Events\Registered;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;

class EventServiceProvider extends ServiceProvider
{
    /**
     * The event listener mappings for the application.
     *
     * @var array
     */
    protected $listen = [
        // 下单成功分销
        'App\Events\OrderComputedDistribution' => [
            'App\Listeners\OrderComputedDistributionListen',
        ],

        // 添加订单插入明细
        'App\Events\OrderAdjustments' => [
            'App\Listeners\OrderAdjustmentsListen',
        ],

        //绑定手机号事件
        BindMobile::class => [
            BindMobileSendCoupon::class
        ],
    ];

    /**
     * Register any events for your application.
     *
     * @return void
     */
    public function boot()
    {
        parent::boot();

        //
    }
}
